﻿<Window x:Class="Airborne.ScrumPoker.Presentation.Client.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cal="http://www.codeplex.com/CompositeWPF"
    xmlns:presentation="clr-namespace:Airborne.ScrumPoker.Module;assembly=Airborne.ScrumPoker.Module"
    xmlns:presentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"  
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="presentationOptions"
    Title="Airborne - Scrum Poker Developer"  
        MaxHeight="800"
        MinHeight="650"
        Width="890" WindowStartupLocation="CenterScreen">
    <Window.Resources>
    </Window.Resources>
    
    

    
    <Grid>
        <Grid.Background>
            <ImageBrush ImageSource="/Airborne.ScrumPoker.Module.Developer;component/Resources/Images/felt.png" Stretch="Fill" presentationOptions:Freeze="True"  />
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="220"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
      
        
        <Border Grid.Row="0" BorderThickness="0.5" BorderBrush="White">
            <Image presentationOptions:Freeze="True" Grid.Row="0" Source="/Airborne.ScrumPoker.Module.Player;component/Resources/Images/header.png" Stretch="Fill" HorizontalAlignment="Left" VerticalAlignment="Top" />
        </Border>
        
        <Border Grid.Row="1" >
            <StackPanel Width="Auto" Height="Auto" Margin="25,15,25,10" >
                <ContentControl cal:RegionManager.RegionName="{x:Static presentation:RegionNames.WorkItemRegion}" Width="Auto" Height="Auto" HorizontalAlignment="Stretch"  VerticalAlignment="Stretch"/>
            </StackPanel>
        </Border>
        
        <Border Grid.Row="2" Height="60" VerticalAlignment="Bottom" >
            <StackPanel Width="Auto" Height="Auto" Margin="10,0,10,20" >
                <ContentControl cal:RegionManager.RegionName="{x:Static presentation:RegionNames.TimerRegion}" Width="Auto" Height="Auto" HorizontalAlignment="Stretch"  VerticalAlignment="Stretch"/>
            </StackPanel>
        </Border>
        
        <Border Grid.Row="2" Margin="25,0,25,0"  >
            <StackPanel ScrollViewer.VerticalScrollBarVisibility="Auto" MaxHeight="800">
                <ContentControl cal:RegionManager.RegionName="{x:Static presentation:RegionNames.CardsRegion}" 
                                HorizontalAlignment="Stretch" 
                                VerticalAlignment="Stretch"/>
            </StackPanel>
        </Border>
    </Grid>
</Window>
